package com.coolxiaoyao.web.http;

import io.netty.handler.codec.http.HttpHeaders;

/**
 * @author Kerry on 19/07/23
 */

public abstract class Filter {

    protected Filter filter;

    public Filter getFilter() {
        return filter;
    }

    public void setFilter(Filter filter) {
        this.filter = filter;
    }

    /**
     * 执行过滤
     *
     * @param httpHeaders
     * @return
     * @throws Exception
     */
    public abstract Object filter(HttpHeaders httpHeaders) throws Exception;

}
